import { get, post, deletes, put } from "../http"
export let userLists = (url, params) => {
    console.log("userlists");
    return get(url, params).then(res => {
        // console.log(res);
        return res
    })
}
export let adduserss = (url, params) => {
    console.log("adduser");

    return post(url, params).then(res => {
        // console.log(res);
        return res
    })
}

export let deleteuser = (url, params) => {
    console.log("inclu");
    return deletes(url, params).then(res => {
        return res
    })
}
export let state = (url, params) => {
    console.log("editstate");
    return put(url, params).then(res => {
        return res
    })

}
export let editu = (url, params) => {
    console.log("修改用户信息");

    return put(url, params).then(res => {
        return res
    })
}